package com.jxin.mall.member.domain.exception;

import cn.hutool.core.util.StrUtil;

/**
 * 登入历史记录表的服务异常类
 * @author  蔡佳新
 * @version 1.0
 * @since   jdk 1.8
 */
public class LoginHistoryServiceException extends RuntimeException{
    private static final long serialVersionUID = 6570909573748040870L;
    public LoginHistoryServiceException(Throwable e) {
        super(StrUtil.format("{}: {}", e.getClass().getSimpleName(), e.getMessage()), e);
    }
    public LoginHistoryServiceException(String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params));
    }
    public LoginHistoryServiceException(Throwable throwable, String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params), throwable);
    }
}
